import { post } from '@/http/axios'

// is_use: '是否启用 1启用2不启用',
// layer_path: '组织图层',
// address: '地址',
// create_time: '创建时间',
// org_type: '组织类型',
// remark: '描述',
// title: '名称',
// parent_id: '父级厂商id',
// inner_code: '厂商编码',
// create_user_account: '创建人',
// short_title: '厂商简称',
// location: '坐标',
// currency_id: '货币单位'

export const getMfrData = (...args) => post('/searchFacilitiesList', ...args)
export const getMfrInfo = (...args) => post('/searchFacilitiesInfo', ...args)

export const addMfrData = (...args) => post('/addFacilities', ...args)
export const editMfrData = (...args) => post('/editFacilities', ...args)
export const delMfrData = (...args) => post('/removeFacilities', ...args)
// 联系人列表查询
export const querycontacts = data => post('/searchFacilitiesContactList', data)

export const editMfrStatus = (...args) => post('/changeUseFacilities', ...args)

export const getMfrAuth = (...args) =>
  post('/searchFacilitiesPermission', ...args)
